import { mergeProps, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderList, ssrRenderAttr, ssrInterpolate } from 'vue/server-renderer';
import { _ as _export_sfc } from '../server.mjs';

const _sfc_main = {
  __name: "index",
  __ssrInlineRender: true,
  props: {
    coms: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  setup(__props) {
    return (_ctx, _push, _parent, _attrs) => {
      _push(`<div${ssrRenderAttrs(mergeProps({ class: "coms" }, _attrs))} data-v-e05e9b6a><!--[-->`);
      ssrRenderList(__props.coms, (item, index) => {
        _push(`<div class="coms-item" data-v-e05e9b6a>`);
        if (item.code == "banner") {
          _push(`<div data-v-e05e9b6a><!--[-->`);
          ssrRenderList(item.settings.list, (ele, index2) => {
            _push(`<div shadow="always" class="m-margin-bottom item"${ssrRenderAttr("body-style", { padding: "8px" })} data-v-e05e9b6a><img${ssrRenderAttr("src", ele.src)} class="banner-image" data-v-e05e9b6a>`);
            if (ele.title) {
              _push(`<div class="title" data-v-e05e9b6a>${ssrInterpolate(ele.title)}</div>`);
            } else {
              _push(`<!---->`);
            }
            _push(`</div>`);
          });
          _push(`<!--]--></div>`);
        } else {
          _push(`<!---->`);
        }
        _push(`</div>`);
      });
      _push(`<!--]--></div>`);
    };
  }
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
  const ssrContext = useSSRContext();
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/coms/index.vue");
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const coms = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e05e9b6a"]]);

export { coms as c };
//# sourceMappingURL=index-93a12165.mjs.map
